var http = require('http');
var url = require('url');
var router = require('./router');

http.createServer(function(request, response){
	if(request.url !== '/favicon.ico'){
		pathname = url.parse(request.url).pathname;
		pathname = pathname.replace(/\//, '');
		router[pathname](request, response);
	}
}).listen(8000);
console.log('server runing at 192.168.0.115:8000');